// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Location.cs" company="XamlNinja">
//   2011 Richard Griffin and Ollie Riches
// </copyright>
// <summary>
//   Location.cs
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace WP7Contrib.Services.BingMaps.Resources.Location
{
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Resources;

    [JsonObject(MemberSerialization.OptIn)]
    internal sealed class Location
    {
        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("point")]
        public Point Point { get; set; }

        [JsonProperty("bbox")]
        public IList<double?> BoundingBox { get; set; }

        [JsonProperty("entityType")]
        public string EntityType { get; set; }

        [JsonProperty("address")]
        public Address Address { get; set; }
    }
}